package mars.mp3player.service;

import java.io.File;

import android.os.Environment;

/**
 * @author Administrator
 *
 */
public interface AppConstant {
	public class PlayerMsg {
		public static final int PLAY_MSG=1;
		public static final int PAUSE_MSG=2;
		public static final int STOP_MSG=3;
		
		public static final String FILE_DIR=Environment.getExternalStorageDirectory()+File.separator+"mp3"+File.separator;
		public static final String ACTION="mars.mp3player.core.lrc";
	}
	
	public class URL {
//		public static final String BASE_URL="http://192.168.1.105:8080/mp3/";
//		public static final String XML_URL="http://192.168.1.105:8080/mp3/resources.xml";
		
		public static final String BASE_URL="http://10.16.182.65:8080/mp3/";
		public static final String XML_URL="http://10.16.182.65:8080/mp3/resources.xml";
	}
	
	public class DownloadVars {
		/**
		 * 成功
		 */
		public static final int SUCCESS = 0; // 成功
		/**
		 * 下载失败
		 */
		public static final int FAILED = -3; // 下载失败
		/**
		 *  文件已下载
		 */
		public static final int SUCCESSED = 1; // 文件已下载
		/**
		 * 文件创建失败
		 */
		public static final int FILE_FAILED = -1;// 文件创建失败
		/**
		 * 服务器无此文件
		 */
		public static final int NO_FILE=-2; // 服务器无此文件
		/**
		 * 通知
		 */
		public static final String NOTIFY="通知";
	}
}
